﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class walkThorn : Skill
{
    public GameObject thorn;
    // Start is called before the first frame update
    void Start()
    {
        
    }
    public override void Active(GameObject go)
    {
        

        if (go.tag == "Player")
        {
            once = true;
            go.transform.GetComponent<Player>().rootPrefabs.Add(thorn);
            
        }
        else if (go.tag == "Enemy")
        {
            go.transform.GetComponent<Enemy>().rootPrefabs.Add(thorn);
          
        }
    }
}
